<?php 
	defined('_JEXEC') or die('Restricted access');
	JHTML::_('behavior.modal');
?>
<?php //echo @$this->lists['search']?>
<?php  
$hotels = $this->hotels;
//print_r($hotels);
?>
<div class="article-title-indent png">
<table class="contentpaneopen">
    <tbody>
        <tr>
        <td class="contentheading" width="100%">
	        <h3>Hotels</h3>
        </td>
      	</tr>
    </tbody>
</table>
</div>
<div>
	<ul class="list-custom3">
    	<li>
        	<table width="100%" class="fht-table fancyTable" cellspacing="2" cellpadding="0" border="0">
            	<thead>
            	<tr class="header_top" style="background-color:#EBEBEB; height:20px;">
                	<th width="25%"><b>Hotel Name</b></th>
                	<th><b>Email</b></th>
                	<th><b>Phone</b></th>
                	<th width=""><b>Star</b></th>
                	<th width="10%" style="text-align:center;"><b>Detail</b></th>
                </tr>
                </thead>
                <tbody>
  			<?php for($i=0;$i<count($hotels);$i++){
				if($i%2==0){?>
            	<tr>
                <?php }
				else{?>
					<tr style="background-color:#F4F4F4;">
				<?php }?>
                	<td height="30" style="vertical-align:middle;"><?php echo $hotels[$i]->hotel_name;?></td>
                	<td style="vertical-align:middle;"><?php echo $hotels[$i]->email;?></td>
                	<td style="vertical-align:middle;"><?php echo $hotels[$i]->phone;?></td>
                	<td style="vertical-align:middle;"><div class="rate-star<?php echo $hotels[$i]->star?>">&nbsp;</div></td>
                	<td style="text-align:center;vertical-align:middle;" class="cartd youngOrange"><a class="modal" href="<?php echo $this->baseurl ?>/send_mail/view_hotel.php?id=<?php echo $hotels[$i]->id?>" rel="{handler: 'iframe', size: {x: 480, y: 300}}">View</a></td>
                </tr>
   			<?php }?>
           	 </tbody>
            </table>
        </li>
    </ul>
</div>